<div class="box box-primary" ng-show="showTable">
    <div class="box-header" >
		<i class="ion ion-clipboard"></i>
		<h3 class="box-title">Prévia - {{previaLeilao['0'].RAZAO}} <br/>
		  <small><i class="fa fa-clock-o"></i> ENCERRADO : {{previaLeilao['0'].DATA | dateFromDB:'dd/MM/yyyy H:i' }}</small></h3>
		<div class="box-tools">
			<ul class="pagination pagination-sm pagination-info no-margin pull-right">
				<li><a href="#/accountability/clousingAuctions"><i class="fa fa-undo"></i>&nbsp;&nbsp;Voltar</a></li>
				
				
			</ul>
		</div>
         
	</div>
	<!-- /.box-header -->
	<div class="box-body">

		<table class="table table-bordered">
			<tbody>
				<tr>
					<th style="width: 10px">#</th>
					<th class="col-xs-4 col-md-3 col-lg-2">DATA HORA</th>
					<th>DESCRIÇÃO</th>
					<th>LANCE INICIAL</th>
					<th>VMV</th>
					<th>GANHADOR</th>
					<th>LANCE</th>
					<th>VISITAS</th>
					<th>A PAGAR</th>
					<th class="col-xs-3 col-md-2 col-lg-1">LOCALIZAÇÃO</th>
				</tr>

				<tr ng-repeat="lote in previaLeilao">
					<td>{{lote.NUM_LOTE}}</td>
					<td>{{lote.FECHAMENTO | dateFromDB:'dd/MM/yyyy H:i'}}</td>
					<td>{{lote.LOTE_DESCRICAO}}</td>
					<td>R$ {{lote.LANCE_INICIAL | numberFormat:[2,',','.']}}</td>
					<td>R$ {{lote.VALOR_MINIMO | numberFormat:[2,',','.']}}</td>
                    <td class="ibg-default">{{ lote.LOGIN }}</td>
                    <td class="ibg-default">R$ {{lote.LANCE_GANHADOR | numberFormat:[2,',','.']  }}  <span options-tool-tip='{"html":true,"placement":"bottom","container":"body"}' coc-tool-tip class="icon-preview-condicional fa text-red fa-exclamation-triangle pull-right" ng-if="isCondicional(lote)" title="Lote Condicional"></span></td>
                    <td>{{lote.VISITAS || 0}}</td>
					<td>R$ {{getComissao(lote)}}</td>
					<td>{{lote.CIDADE}}/{{lote.UF_LOTE}}</td>

				</tr>
			</tbody>
			<tfoot>
			 <tr class="ibg-default">
			   <td><!-- ID --></td>
			   <td><!-- NUM LOTE --></td>
			   <td><!-- HORA --></td>
			   <td>R$ {{totais.LANCE_INICIAL | numberFormat:[2,',','.']}}</td>
			   <td>R$ {{totais.VALOR_MINIMO | numberFormat:[2,',','.']}}</td>
			   <td></td>
			   <td>R$ {{totais.LANCE_GANHADOR | numberFormat:[2,',','.']}}</td>
			   <td>{{totais.VISITAS}}</td>
			   <td>R$ {{totais.TOTAL_PAGAR | numberFormat:[2,',','.']}}</td>
			   <td></td>
			 </tr>
			</tfoot>
			

		</table>
	</div>
	<div class="box-footer clearfix no-border">
		
		<a coc-tool-tip title="Gerar um relatório detalhado do leilão em pdf" href="<?php  echo base_url('reports-admin-leilao-statistics-') ?>{{previaLeilao['0'].ID}}-pdf.html"class="btn btn-sm btn-primary"><i class="fa fa-file-pdf-o"></i>&nbsp; Gerar PDF</a>
		&nbsp;<a coc-tool-tip title="Gerar um relatório detalhado do leilão em excel" href="<?php  echo base_url('reports-admin-leilao-statistics-') ?>{{previaLeilao['0'].ID}}-xls.html" class="btn btn-sm btn-success"><i class="fa fa-file-excel-o"></i>&nbsp; Gerar Excel</a>
	</div>
</div>